import { request } from 'umi';
//获取海报列表
export const getPosterList = (params: Object) => {
    return request('api/poster', {
        method: 'GET',
        params
    })
}
//删除信息
export const delPoster = (id: string) => {
    return request('api/poster', {
        method: 'DELETE',
        id
    })
}
//文件管理
export const getFileList = (params: Object) => {
    return request('api/file', {
        method: 'GET',
        params
    })
}
//分类管理
export const getClassify = () => {
    return request('api/category')
}
//标签管理
export const getTag = () => {
    return request('api/tag')
}
//添加标签
export const addTag = (data: Object) => {
    console.log(data, 'data')
    return request('api/tag', {
        method: 'POST',
        data
    })
}